package com.example.test4.com.it.page;

import com.example.test4.com.it.domain.Company;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

/**
 * @ClassName Pagelist
 * Descrition TD00
 * Author Zhang Hai Xia
 * date 2021/10/23 17:09
 * @Version 1.0
 */

@Data
public class Pagelist {

    private Integer currentPage;
    //总条数
    private Integer totalCount;
    //每页条数
    private Integer pageSize;

    List<Company> list = new ArrayList<>();

    /**
     * 根据传入参数计算出以下数据
     */
    //首页
    private Integer firstPage = 1;
    //尾页
    private Integer lastPage;
    //上一页
    private Integer upPage;
    //下一页
    private Integer nextPage;
    //总页数
    private Integer totalPage;
}
